export const imgerr = {
  inserted(el, options) {
    el.addEventListener('error', () => {
      el.src = options.value
    })
    el.src = el.src || options.value
  },
  // 组件更新后的钩子
  componentUpdated(el, options) {
    el.src = el.src || options.value
  }
}
